package edu.scsu.csci.core;

import edu.scsu.csci.IExecutionError;


/**
 *
 * @author Maqbool Khan
 * @since jdk 1.5
 * @see
 */
public class ExecutionError implements IExecutionError {

	/**
	 * field name.
	 */
	private String fieldName;
	
	/**
	 * error message.
	 */
	private String errorMessage;
	
	
	/**
	 * @param fieldName
	 * @param errorMessage
	 */
	public ExecutionError(String fieldName,String errorMessage)	{
		this.fieldName = fieldName;
		this.errorMessage = errorMessage;
	}


	/* (non-Javadoc)
	 * @see edu.scsu.csci.validator.IExecutionError#getErrorMessage()
	 */
	public String getErrorMessage() {
		return errorMessage;
	}


	/* (non-Javadoc)
	 * @see edu.scsu.csci.validator.IExecutionError#setErrorMessage(java.lang.String)
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}


	/* (non-Javadoc)
	 * @see edu.scsu.csci.validator.IExecutionError#getFieldName()
	 */
	public String getFieldName() {
		return fieldName;
	}


	/* (non-Javadoc)
	 * @see edu.scsu.csci.validator.IExecutionError#setFieldName(java.lang.String)
	 */
	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}
	
}
